
#ifndef RASTER_H_INCLUDED
#define RASTER_H_INCLUDED

#include "geometry.h"

struct FRAGMENT {
    int x,y;
    float z;

    VECTOR3 normal;
    VECTOR4 color;
    VECTOR4 colorligth;
    VECTOR3 texcoord;

};

void sqsFrameBuffer(unsigned int width,unsigned int height);
void sqsClear(VECTOR4* background);
void sqsOutputFragment(int x, int y);
void sqsLineBresenham(int x0,int y0,int x1,int y1);
char sqsDepthTeste(struct FRAGMENT* f);
void sqsRasterPoint(struct INTERNAL_VERTEX* v);
void sqsRasterLine(struct INTERNAL_VERTEX* v1,struct INTERNAL_VERTEX *v2);
void sqsRasterTriangle(struct INTERNAL_VERTEX *v1,struct INTERNAL_VERTEX *v2,struct INTERNAL_VERTEX *v3);




#endif // RASTER_H_INCLUDED
